3.6.99 \(\int x^2 (a+b x^3)^p \, dx\) [599]

Optimal. Leaf size=23 \[ \frac {\left (a+b x^3\right )^{1+p}}{3 b (1+p)} \]

[Out]

1/3*(b*x^3+a)^(1+p)/b/(1+p)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {267} \begin {gather*} \frac {\left (a+b x^3\right )^{p+1}}{3 b (p+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*(a + b*x^3)^p,x]

[Out]

(a + b*x^3)^(1 + p)/(3*b*(1 + p))

Rule 267

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a + b*x^n)^(p + 1)/(b*n*(p + 1)), x] /; FreeQ
[{a, b, m, n, p}, x] && EqQ[m, n - 1] && NeQ[p, -1]

Rubi steps

\begin {align*} \int x^2 \left (a+b x^3\right )^p \, dx &=\frac {\left (a+b x^3\right )^{1+p}}{3 b (1+p)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 23, normalized size = 1.00 \begin {gather*} \frac {\left (a+b x^3\right )^{1+p}}{3 b (1+p)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a + b*x^3)^p,x]

[Out]

(a + b*x^3)^(1 + p)/(3*b*(1 + p))

________________________________________________________________________________________

Maple [A]
time = 0.14, size = 22, normalized size = 0.96

method result size
gosper \(\frac {\left (b \,x^{3}+a \right )^{1+p}}{3 b \left (1+p \right )}\) \(22\)
derivativedivides \(\frac {\left (b \,x^{3}+a \right )^{1+p}}{3 b \left (1+p \right )}\) \(22\)
default \(\frac {\left (b \,x^{3}+a \right )^{1+p}}{3 b \left (1+p \right )}\) \(22\)
risch \(\frac {\left (b \,x^{3}+a \right ) \left (b \,x^{3}+a \right )^{p}}{3 b \left (1+p \right )}\) \(27\)
norman \(\frac {x^{3} {\mathrm e}^{p \ln \left (b \,x^{3}+a \right )}}{3+3 p}+\frac {a \,{\mathrm e}^{p \ln \left (b \,x^{3}+a \right )}}{3 b \left (1+p \right )}\) \(45\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(b*x^3+a)^p,x,method=_RETURNVERBOSE)

[Out]

1/3*(b*x^3+a)^(1+p)/b/(1+p)

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 21, normalized size = 0.91 \begin {gather*} \frac {{\left (b x^{3} + a\right )}^{p + 1}}{3 \, b {\left (p + 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(b*x^3+a)^p,x, algorithm="maxima")

[Out]

1/3*(b*x^3 + a)^(p + 1)/(b*(p + 1))

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 25, normalized size = 1.09 \begin {gather*} \frac {{\left (b x^{3} + a\right )} {\left (b x^{3} + a\right )}^{p}}{3 \, {\left (b p + b\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(b*x^3+a)^p,x, algorithm="fricas")

[Out]

1/3*(b*x^3 + a)*(b*x^3 + a)^p/(b*p + b)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (15) = 30\).
time = 0.51, size = 104, normalized size = 4.52 \begin {gather*} \begin {cases} \frac {x^{3}}{3 a} & \text {for}\: b = 0 \wedge p = -1 \\\frac {a^{p} x^{3}}{3} & \text {for}\: b = 0 \\\frac {\log {\left (x - \sqrt [3]{- \frac {a}{b}} \right )}}{3 b} + \frac {\log {\left (4 x^{2} + 4 x \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{3 b} & \text {for}\: p = -1 \\\frac {a \left (a + b x^{3}\right )^{p}}{3 b p + 3 b} + \frac {b x^{3} \left (a + b x^{3}\right )^{p}}{3 b p + 3 b} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(b*x**3+a)**p,x)

[Out]

Piecewise((x**3/(3*a), Eq(b, 0) & Eq(p, -1)), (a**p*x**3/3, Eq(b, 0)), (log(x - (-a/b)**(1/3))/(3*b) + log(4*x
**2 + 4*x*(-a/b)**(1/3) + 4*(-a/b)**(2/3))/(3*b), Eq(p, -1)), (a*(a + b*x**3)**p/(3*b*p + 3*b) + b*x**3*(a + b
*x**3)**p/(3*b*p + 3*b), True))

________________________________________________________________________________________

Giac [A]
time = 1.16, size = 21, normalized size = 0.91 \begin {gather*} \frac {{\left (b x^{3} + a\right )}^{p + 1}}{3 \, b {\left (p + 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(b*x^3+a)^p,x, algorithm="giac")

[Out]

1/3*(b*x^3 + a)^(p + 1)/(b*(p + 1))

________________________________________________________________________________________

Mupad [B]
time = 1.09, size = 21, normalized size = 0.91 \begin {gather*} \frac {{\left (b\,x^3+a\right )}^{p+1}}{3\,b\,\left (p+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*x^3)^p,x)

[Out]

(a + b*x^3)^(p + 1)/(3*b*(p + 1))

________________________________________________________________________________________